<?php

$username = $_POST['name'];
$password = $_POST['pass'];
$passconf = $_POST['passconf'];
$passhash = hash('whirlpool',$password);

echo "Your username was '". $username ."'.
<br/>The password provided was '". $password ."'.
<br/>The confirmation password ". ($password==$passconf?"matched":"did not match") .".
<br/><br/>The hash of the password was...<br/><span style=\"font-size:60%;\">". $passhash ."</span>
<br/>strlen - ". strlen($passhash);

// Try either password_hash($password) or hash('whirlpool',$password)

?>